#!groovy

pipeline {
  agent { node { label 'linux' } }
  options {
    durabilityHint( 'PERFORMANCE_OPTIMIZED' )
    timeout(time: 3, unit: 'HOURS')
  }
  stages {
    stage("Jetty-9.4.15.v20190215-100") {
      steps {
        script {
          build job: 'load-test-pipeline', parameters: [
                  string(name: 'JETTY_VERSION', value:'9.4.15.v20190215'),
                  string(name: 'LOADER_RATE', value: '100')
          ]
        }
      }
    }
    stage("Jetty-9.4.15.v20190215-300") {
      steps {
        script {
          build job: 'load-test-pipeline', parameters: [
                  string(name: 'JETTY_VERSION', value:'9.4.15.v20190215'),
                  string(name: 'LOADER_RATE', value: '300')
          ]
        }
      }
    }
    stage("Jetty-9.4.15.v20190215-500") {
      steps {
        script {
          build job: 'load-test-pipeline', parameters: [
                  string(name: 'JETTY_VERSION', value:'9.4.15.v20190215'),
                  string(name: 'LOADER_RATE', value: '500')
          ]
        }
      }
    }

    stage("Jetty-9.4.40-SNAPSHOT-100") {
      steps {
        script {
          build job: 'load-test-pipeline', parameters: [
                  string(name: 'JETTY_VERSION', value:'9.4.40-SNAPSHOT'),
                  string(name: 'LOADER_RATE', value: '100')
          ]
        }
      }
    }
    stage("Jetty-9.4.40-SNAPSHOT-300") {
      steps {
        script {
          build job: 'load-test-pipeline', parameters: [
                  string(name: 'JETTY_VERSION', value:'9.4.40-SNAPSHOT'),
                  string(name: 'LOADER_RATE', value: '300')
          ]
        }
      }
    }
    stage("Jetty-9.4.40-SNAPSHOT-500") {
      steps {
        script {
          build job: 'load-test-pipeline', parameters: [
                  string(name: 'JETTY_VERSION', value:'9.4.40-SNAPSHOT'),
                  string(name: 'LOADER_RATE', value: '500')
          ]
        }
      }
    }

    stage("Jetty-10.0.3-SNAPSHOT-100") {
      steps {
        script {
          build job: 'load-test-pipeline', parameters: [
                  string(name: 'JETTY_VERSION', value:'10.0.3-SNAPSHOT'),
                  string(name: 'LOADER_RATE', value: '100')
          ]
        }
      }
    }
    stage("Jetty-10.0.3-SNAPSHOT-300") {
      steps {
        script {
          build job: 'load-test-pipeline', parameters: [
                  string(name: 'JETTY_VERSION', value:'10.0.3-SNAPSHOT'),
                  string(name: 'LOADER_RATE', value: '300')
          ]
        }
      }
    }
    stage("Jetty-10.0.3-SNAPSHOT-500") {
      steps {
        script {
          build job: 'load-test-pipeline', parameters: [
                  string(name: 'JETTY_VERSION', value:'10.0.3-SNAPSHOT'),
                  string(name: 'LOADER_RATE', value: '500')
          ]
        }
      }
    }
  }
}

